<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camunda="http://camunda.org/schema/1.0/bpmn"
  xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC"
  xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema"
  expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="Examples">
  
  <process id="testScoping" isExecutable="true">
  
    <startEvent id="theStart" />

    <serviceTask id="servicetask1"      
      camunda:delegateExpression="${requestScopedDelegateBean}"
      camunda:async="true" />
      
    <serviceTask id="servicetask2"      
      camunda:delegateExpression="${requestScopedDelegateBean}" />

    <userTask id="waitHere" />
    
    <serviceTask id="servicetask3"      
      camunda:delegateExpression="${requestScopedDelegateBean}"
      camunda:async="true" />
      
    <userTask id="waitAgain" />

    <sequenceFlow sourceRef="theStart" targetRef="servicetask1" />
    <sequenceFlow sourceRef="servicetask1" targetRef="servicetask2" />
    <sequenceFlow sourceRef="servicetask2" targetRef="waitHere" />
    <sequenceFlow sourceRef="waitHere" targetRef="servicetask3" />
    <sequenceFlow sourceRef="servicetask3" targetRef="waitAgain" />
    <sequenceFlow sourceRef="waitAgain" targetRef="endevent1" />

    <endEvent id="endevent1" />
    
  </process>
  
</definitions>